// #ifdef APP-NVUE
const dom = weex.requireModule('dom')
// #endif
export default {
	data() {
		return {
			statusBarHeight: 0,//状态栏高度
			statusbarHeight: 0,
			tabbarHeight: 50, // 默认50
			contentHeight: 800, // 去除状态栏和底部tabbar
			screenHeight: 850, // 屏幕高度
			withoutTabbarHeight: 800, // 去除底部tabbar,
			withoutStatusbarHeight: 800 // 去除状态栏
		}
	},
	methods: {
		getViews() {
			uni.getSystemInfo({
				success: res => {
					console.log(res); 
					//top:状态栏高度，bottom:屏幕高度,  height: 去除顶部状态栏的高度
					this.statusBarHeight = res.statusBarHeight
					this.statusbarHeight = res.safeArea.top
					this.screenHeight = res.safeArea.bottom
					this.contentHeight = res.safeArea.height - this.tabbarHeight
					this.withoutTabbarHeight = res.safeArea.bottom - this.tabbarHeight
					this.withoutStatusbarHeight = res.safeArea.height
				}
			});
		}
	}
}
